// pages/user/index.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    handleCardManagement: function(e){
      wx.navigateTo({
        url: '/pages/user/cardManagement'
      })
    },
    handleCharge: function(e){
      wx.navigateTo({
        url: '/pages/charge/chargeQuery',
      })
    },
    handleRegisterRecord: function(e){
      wx.navigateTo({
        url: '/pages/register/registerAndAppiointHistory?id=0',
      })
    },
    handleReportQuery: function(e){
      wx.navigateTo({
        url: '/pages/clinicQuery/clinicQuery?id=0',
      })
    }
  },
  options: {
   addGlobalClass: true
 },
 lifetimes:{
  //  attached:function(){
  //   let that = this.selectComponent("#card")
  //   that.callbackFunc(()=>that.loadData())
  //  }
  
 }
})
